<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<body>
<h2>简历8080</h2>
<div>
    <div style="text-align: right"><input type="button" value="新增" onclick="script:location.href='/save.jsp'"></div>
    <table>
        <tr><th>id</th><th>姓名</th><th>地址</th><th>手机</th><th>操作</th><th>操作</th></tr>
        <c:forEach items="${list}" var="resume">
            <tr>
                <td>${resume.id}</td>
                <td>${resume.name}</td>
                <td>${resume.address}</td>
                <td>${resume.phone}</td>
                <td><input type="button" value="编辑" onclick="script:location.href='/save.jsp?id=${resume.id}&name=${resume.name}&address=${resume.address}&phone=${resume.phone}'"></td>
                <td><input type="button" value="删除" onclick="script:location.href='/delete?id=${resume.id}'"></td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>

